﻿@{
    string url = "";
    
    var image = Model.ContentBanner.ContentItem.ContentBannerPart.BannerImageUrl;
    if (image != null && !string.IsNullOrWhiteSpace(image.Url))
    {
        url = image.Url;
        if (!url.StartsWith("http"))
        { 
            url = Href(url);
        }
    }
}

@if (Model.ContentBanner.DisplayBanner)
{ 
<img src="@url" alt="@T(image.AlternateText)" />
}
